// "id": 10013,
//             "plate_no": "粤BT3438",
//             "user_name": "蔡拥涛",
//             "creat_at": "2022-07-22 09:32:40",
//             "lng": "104.11866",
//             "lat": "30.94528",
//             "images": [
//                 "https://oss-new.sxpei.cn/app%2Fcar%2F1c9659b0-07d4-11ed-9308-a3967e180cec.jpg?Expires=1658473359&OSSAccessKeyId=STS.NTTciNSY1gh8QpcqRu7cPQtqX&Signature=pBMVT0IyYWP1lTRtaz%2FK9gzRWig%3D&security-token=CAIS%2BgF1q6Ft5B2yfSjIr5fhKNP6voYQ0KrTU1bSlVIgO%2Bx8vrHaujz2IHtLfHFqCOocsf42nm5T5%2FYSlrh%2BW4NIX0rNaY5t9ZlN9wqkbtJpQyV7J%2BRW5qe%2BEE2%2FVjTZvqaLEcibIfrZfvCyESOm8gZ43br9cxi7QlWhKufnoJV7b9MRLGLaBHg8c7UwHAZ5r9IAPnb8LOukNgWQ4lDdF011oAFx%2BwgdgOadupTBs0eE1gOqlLNJ%2Btmrf8GeApMybMslYbCcx%2Fdrc6fN6ilU5iVR%2Bb1%2B5K4%2BomyY5onHUgMLvE%2FfabSPo40%2FNm1jb609ALVYoePghUaMWHxIPTSdGoABC848OBe54YM4ptbNgxoCNd7CQuqeXZ71FaB2CLNNKev77XruV1b8ZbMxg5Y1Ryf4FWlJL5LlT%2FdtqZKVX4XqfH3lqyzxKPQFjV77QYKcj9ZZSTqaQxnL%2FGStri72vVocpQoUN2dMRqsq%2B3SH%2FT1hi1z5U9GI5hQnV15jJ3tSjzM%3D",
//                 "https://oss-new.sxpei.cn/app%2Fcar%2F0a917740-07d4-11ed-9308-a3967e180cec.jpg?Expires=1658473359&OSSAccessKeyId=STS.NTTciNSY1gh8QpcqRu7cPQtqX&Signature=yGftlBjJYGyk%2B6DW9sSO2h4hdHI%3D&security-token=CAIS%2BgF1q6Ft5B2yfSjIr5fhKNP6voYQ0KrTU1bSlVIgO%2Bx8vrHaujz2IHtLfHFqCOocsf42nm5T5%2FYSlrh%2BW4NIX0rNaY5t9ZlN9wqkbtJpQyV7J%2BRW5qe%2BEE2%2FVjTZvqaLEcibIfrZfvCyESOm8gZ43br9cxi7QlWhKufnoJV7b9MRLGLaBHg8c7UwHAZ5r9IAPnb8LOukNgWQ4lDdF011oAFx%2BwgdgOadupTBs0eE1gOqlLNJ%2Btmrf8GeApMybMslYbCcx%2Fdrc6fN6ilU5iVR%2Bb1%2B5K4%2BomyY5onHUgMLvE%2FfabSPo40%2FNm1jb609ALVYoePghUaMWHxIPTSdGoABC848OBe54YM4ptbNgxoCNd7CQuqeXZ71FaB2CLNNKev77XruV1b8ZbMxg5Y1Ryf4FWlJL5LlT%2FdtqZKVX4XqfH3lqyzxKPQFjV77QYKcj9ZZSTqaQxnL%2FGStri72vVocpQoUN2dMRqsq%2B3SH%2FT1hi1z5U9GI5hQnV15jJ3tSjzM%3D"
//             ],
//             "remark": "第六停靠点 - 12"

class TruckModel {
  int id;

  String plate_no;

  String user_name;

  String creat_at;

  String lng;
  String lat;
  List<dynamic> images;
  String remark;

  String park_name;

  TruckModel(
    this.id,
    this.plate_no,
    this.user_name,
    this.creat_at,
    this.lng,
    this.lat,
    this.images,
    this.remark,
    this.park_name,
  );

  factory TruckModel.fromMap(Map<dynamic, dynamic> json) => TruckModel(
        json['id'],
        json['plate_no'],
        json['user_name'],
        json['creat_at'],
        json['lng'],
        json['lat'],
        json['images'],
        json['remark'],
        json['park_name'],
      );
}

class TruckParkModel {
  final int? id;

  String name;
  
  TruckParkModel(
    this.id,
    this.name,
  );

  factory TruckParkModel.fromMap(Map<dynamic, dynamic> json) => TruckParkModel(
        json['id'],
        json['name'],
      );
}

